(global.webpackJsonp = global.webpackJsonp || []).push([ [ "wjyk_recycle/pages/transaction/index/index" ], {
    "01bd": function(t, n, e) {
        var a = e("86a4");
        e.n(a).a;
    },
    "0441": function(t, n, e) {
        e.r(n);
        var a, r = e("dae4"), i = e("ee07");
        for (a in i) "default" !== a && function(t) {
            e.d(n, t, function() {
                return i[t];
            });
        }(a);
        e("01bd");
        var o = e("f0c5"), r = Object(o.a)(i.default, r.b, r.c, !1, null, null, null, !1, r.a, void 0);
        n.default = r.exports;
    },
    "1fbc": function(t, r, o) {
        (function(a) {
            Object.defineProperty(r, "__esModule", {
                value: !0
            }), r.default = void 0;
            var t, i = (t = o("4795")) && t.__esModule ? t : {
                default: t
            };
            function u(t, n, e, a, r, i, o) {
                try {
                    var c = t[i](o), u = c.value;
                } catch (t) {
                    return e(t), 0;
                }
                c.done ? n(u) : Promise.resolve(u).then(a, r);
            }
            function n(c) {
                return function() {
                    var t = this, o = arguments;
                    return new Promise(function(n, e) {
                        var a = c.apply(t, o);
                        function r(t) {
                            u(a, n, e, r, i, "next", t);
                        }
                        function i(t) {
                            u(a, n, e, r, i, "throw", t);
                        }
                        r(void 0);
                    });
                };
            }
            var e = {
                data: function() {
                    return {
                        pic_url: this.$imgUrl,
                        obj: {},
                        categoryList: [],
                        cIndex: 0,
                        shopList: [],
                        city: "定位中",
                        name: "",
                        systemObj: {},
                        indicatorDots: !0,
                        autoplay: !0,
                        interval: 5e3,
                        duration: 500,
                        downOption: {
                            auto: !1
                        },
                        upOption: {
                            auto: !1
                        }
                    };
                },
                onShow: function() {
                    this.getTransactions(), this.getSystem();
                },
                onLoad: function() {
                    this.getAddress();
                },
                methods: {
                    getIndex: function() {
                        a.reLaunch({
                            url: "/wjyk_recycle/pages/index/index"
                        });
                    },
                    search: function() {
                        var t = this;
                        this.$nextTick(function() {
                            t.mescroll.resetUpScroll();
                        });
                    },
                    detail: function(t) {
                        a.navigateTo({
                            url: "/wjyk_recycle/pages/transaction/index/detail/detail?sid=" + t
                        });
                    },
                    getCity: function(e, a) {
                        var r = this;
                        return n(i.default.mark(function t() {
                            var n;
                            return i.default.wrap(function(t) {
                                for (;;) switch (t.prev = t.next) {
                                  case 0:
                                    return t.next = 2, r.$http({
                                        url: r.$api.getCity,
                                        data: {
                                            lng: e,
                                            lat: a
                                        }
                                    });

                                  case 2:
                                    0 == (n = t.sent).errno && (r.city = n.data.address_component.city, r.getCateList());

                                  case 4:
                                  case "end":
                                    return t.stop();
                                }
                            }, t);
                        }))();
                    },
                    getAddress: function() {
                        var e = this;
                        return n(i.default.mark(function t() {
                            var n;
                            return i.default.wrap(function(t) {
                                for (;;) switch (t.prev = t.next) {
                                  case 0:
                                    return t.next = 3, e.$sun.latlng();

                                  case 3:
                                    n = t.sent, e.getCity(n.lng, n.lat);

                                  case 5:
                                  case "end":
                                    return t.stop();
                                }
                            }, t);
                        }))();
                    },
                    getSystem: function() {
                        var e = this;
                        return n(i.default.mark(function t() {
                            var n;
                            return i.default.wrap(function(t) {
                                for (;;) switch (t.prev = t.next) {
                                  case 0:
                                    return t.next = 2, e.$http({
                                        url: e.$api.system
                                    });

                                  case 2:
                                    0 == (n = t.sent).errno && (e.systemObj = n.data);

                                  case 4:
                                  case "end":
                                    return t.stop();
                                }
                            }, t);
                        }))();
                    },
                    upCallback: function(e) {
                        var a = this;
                        return n(i.default.mark(function t() {
                            var n;
                            return i.default.wrap(function(t) {
                                for (;;) switch (t.prev = t.next) {
                                  case 0:
                                    return t.next = 2, a.$http({
                                        url: a.$api.goodsList,
                                        data: {
                                            uid: "",
                                            city: a.city,
                                            categoryid: a.categoryList[a.cIndex].id,
                                            name: a.name,
                                            page: e.num,
                                            psize: 10
                                        }
                                    });

                                  case 2:
                                    0 == (n = t.sent).errno && (a.mescroll.endByPage(n.data.list.length, n.data.totalPage), 
                                    1 == e.num && (a.shopList = []), a.shopList = a.shopList.concat(n.data.list));

                                  case 4:
                                  case "end":
                                    return t.stop();
                                }
                            }, t);
                        }))();
                    },
                    getCateList: function() {
                        var e = this;
                        return n(i.default.mark(function t() {
                            var n;
                            return i.default.wrap(function(t) {
                                for (;;) switch (t.prev = t.next) {
                                  case 0:
                                    return t.next = 2, e.$http({
                                        url: e.$api.tCateList
                                    });

                                  case 2:
                                    0 == (n = t.sent).errno && (e.categoryList = n.data, e.$nextTick(function() {
                                        e.mescroll.resetUpScroll();
                                    }));

                                  case 4:
                                  case "end":
                                    return t.stop();
                                }
                            }, t);
                        }))();
                    },
                    ontabtap: function(t) {
                        var n = this;
                        console.log(t);
                        t = t.currentTarget.dataset.current;
                        this.cIndex = t, this.$nextTick(function() {
                            n.mescroll.resetUpScroll();
                        });
                    },
                    getTransactions: function() {
                        var e = this;
                        return n(i.default.mark(function t() {
                            var n;
                            return i.default.wrap(function(t) {
                                for (;;) switch (t.prev = t.next) {
                                  case 0:
                                    return t.next = 2, e.$http({
                                        url: e.$api.transactions,
                                        data: {
                                            uid: a.getStorageSync("uid")
                                        }
                                    });

                                  case 2:
                                    0 == (n = t.sent).errno && (e.obj = n.data);

                                  case 4:
                                  case "end":
                                    return t.stop();
                                }
                            }, t);
                        }))();
                    },
                    changeUrl: function(t, n) {
                        console.log("*********************", t, n, n.appid), 1 == n.type && a.navigateTo({
                            url: n.url
                        }), 2 == n.type && "" != n.appid && null != n.appid && wx.navigateToMiniProgram({
                            appId: n.appid,
                            success: function(t) {
                                console.log("成功", t);
                            },
                            fail: function(t) {
                                console.log("失败", t);
                            }
                        });
                    }
                }
            };
            r.default = e;
        }).call(this, o("543d").default);
    },
    "66f2": function(t, n, e) {
        (function(t) {
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            e("8163"), n(e("66fd")), t(n(e("0441")).default);
        }).call(this, e("543d").createPage);
    },
    "86a4": function(t, n, e) {},
    dae4: function(t, n, e) {
        function a() {
            this.$createElement, this._self._c;
        }
        var r = [];
        e.d(n, "b", function() {
            return a;
        }), e.d(n, "c", function() {
            return r;
        }), e.d(n, "a", function() {});
    },
    ee07: function(t, n, e) {
        e.r(n);
        var a, r = e("1fbc"), i = e.n(r);
        for (a in r) "default" !== a && function(t) {
            e.d(n, t, function() {
                return r[t];
            });
        }(a);
        n.default = i.a;
    }
}, [ [ "66f2", "common/runtime", "common/vendor" ] ] ]);